# Project: std
# Makefile created by Dev-C++ 5.11

CPP      = g++.exe
CC       = gcc.exe
LD		 = ld.exe
WINDRES  = windres.exe
AS		 = nasm.exe
ASFLAGS	 = -f coff
OBJ      = ./../build/std/stdlib.o ./../build/std/vsprintf.o ./../build/std/avltree.o ./../build/std/vga.o ./../build/std/debug.o ./../build/std/bscfunc.o
LINKOBJ  = ./../build/std/stdlib.o ./../build/std/vsprintf.o ./../build/std/avltree.o ./../build/std/vga.o ./../build/std/debug.o ./../build/std/bscfunc.o
LIBS     = -L"C:/Program Files/Dev-Cpp/MinGW64/lib32" -L"C:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32" -static-libgcc -m32
INCS     = -I"C:/Program Files/Dev-Cpp/MinGW64/include" -I"C:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"./../include" -I"./../include/std"
CXXINCS  = -I"C:/Program Files/Dev-Cpp/MinGW64/include" -I"C:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++" -I"./../include" -I"./../include/std"
BIN      = ../build/std/std.o
CXXFLAGS = $(CXXINCS) -O3 -m32
CFLAGS   = $(INCS) -O3 -m32
RM       = rm.exe -f

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after

clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(LD) -r $(LINKOBJ) -o $(BIN)

./../build/std/vsprintf.o: vsprintf.c
	$(CC) -c vsprintf.c -o ./../build/std/vsprintf.o $(CFLAGS)

./../build/std/avltree.o: avltree.c
	$(CC) -c avltree.c -o ./../build/std/avltree.o $(CFLAGS)

./../build/std/vga.o: vga.c
	$(CC) -c vga.c -o ./../build/std/vga.o $(CFLAGS)

./../build/std/debug.o: debug.c
	$(CC) -c debug.c -o ./../build/std/debug.o $(CFLAGS)

 ./../build/std/bscfunc.o: bscfunc.c
	$(CC) -c bscfunc.c -o ./../build/std/bscfunc.o $(CFLAGS)
 
./../build/std/stdlib.o : stdlib.asm
	$(AS) $(ASFLAGS) stdlib.asm -o ./../build/std/stdlib.o